package com.longchat.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.longchat.domain.award.AwardLog;

public interface AwardLogJpaRepository extends JpaRepository<AwardLog, Integer> {

	@Query("select a from AwardLog a where a.openid = ?1")
	List<AwardLog> findByOpenid(String openid);
	
	@Query("select a from AwardLog a where a.phone = ?1")
	AwardLog awardValidate(String phone);
	
	
	
}
